package com.iemp.bean.example;

import java.util.ArrayList;
import java.util.List;

public class StarExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public StarExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andStarIdIsNull() {
            addCriterion("star_id is null");
            return (Criteria) this;
        }

        public Criteria andStarIdIsNotNull() {
            addCriterion("star_id is not null");
            return (Criteria) this;
        }

        public Criteria andStarIdEqualTo(Integer value) {
            addCriterion("star_id =", value, "starId");
            return (Criteria) this;
        }

        public Criteria andStarIdNotEqualTo(Integer value) {
            addCriterion("star_id <>", value, "starId");
            return (Criteria) this;
        }

        public Criteria andStarIdGreaterThan(Integer value) {
            addCriterion("star_id >", value, "starId");
            return (Criteria) this;
        }

        public Criteria andStarIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("star_id >=", value, "starId");
            return (Criteria) this;
        }

        public Criteria andStarIdLessThan(Integer value) {
            addCriterion("star_id <", value, "starId");
            return (Criteria) this;
        }

        public Criteria andStarIdLessThanOrEqualTo(Integer value) {
            addCriterion("star_id <=", value, "starId");
            return (Criteria) this;
        }

        public Criteria andStarIdIn(List<Integer> values) {
            addCriterion("star_id in", values, "starId");
            return (Criteria) this;
        }

        public Criteria andStarIdNotIn(List<Integer> values) {
            addCriterion("star_id not in", values, "starId");
            return (Criteria) this;
        }

        public Criteria andStarIdBetween(Integer value1, Integer value2) {
            addCriterion("star_id between", value1, value2, "starId");
            return (Criteria) this;
        }

        public Criteria andStarIdNotBetween(Integer value1, Integer value2) {
            addCriterion("star_id not between", value1, value2, "starId");
            return (Criteria) this;
        }

        public Criteria andStarNameIsNull() {
            addCriterion("star_name is null");
            return (Criteria) this;
        }

        public Criteria andStarNameIsNotNull() {
            addCriterion("star_name is not null");
            return (Criteria) this;
        }

        public Criteria andStarNameEqualTo(String value) {
            addCriterion("star_name =", value, "starName");
            return (Criteria) this;
        }

        public Criteria andStarNameNotEqualTo(String value) {
            addCriterion("star_name <>", value, "starName");
            return (Criteria) this;
        }

        public Criteria andStarNameGreaterThan(String value) {
            addCriterion("star_name >", value, "starName");
            return (Criteria) this;
        }

        public Criteria andStarNameGreaterThanOrEqualTo(String value) {
            addCriterion("star_name >=", value, "starName");
            return (Criteria) this;
        }

        public Criteria andStarNameLessThan(String value) {
            addCriterion("star_name <", value, "starName");
            return (Criteria) this;
        }

        public Criteria andStarNameLessThanOrEqualTo(String value) {
            addCriterion("star_name <=", value, "starName");
            return (Criteria) this;
        }

        public Criteria andStarNameLike(String value) {
            addCriterion("star_name like", value, "starName");
            return (Criteria) this;
        }

        public Criteria andStarNameNotLike(String value) {
            addCriterion("star_name not like", value, "starName");
            return (Criteria) this;
        }

        public Criteria andStarNameIn(List<String> values) {
            addCriterion("star_name in", values, "starName");
            return (Criteria) this;
        }

        public Criteria andStarNameNotIn(List<String> values) {
            addCriterion("star_name not in", values, "starName");
            return (Criteria) this;
        }

        public Criteria andStarNameBetween(String value1, String value2) {
            addCriterion("star_name between", value1, value2, "starName");
            return (Criteria) this;
        }

        public Criteria andStarNameNotBetween(String value1, String value2) {
            addCriterion("star_name not between", value1, value2, "starName");
            return (Criteria) this;
        }

        public Criteria andStarCollegeIsNull() {
            addCriterion("star_college is null");
            return (Criteria) this;
        }

        public Criteria andStarCollegeIsNotNull() {
            addCriterion("star_college is not null");
            return (Criteria) this;
        }

        public Criteria andStarCollegeEqualTo(String value) {
            addCriterion("star_college =", value, "starCollege");
            return (Criteria) this;
        }

        public Criteria andStarCollegeNotEqualTo(String value) {
            addCriterion("star_college <>", value, "starCollege");
            return (Criteria) this;
        }

        public Criteria andStarCollegeGreaterThan(String value) {
            addCriterion("star_college >", value, "starCollege");
            return (Criteria) this;
        }

        public Criteria andStarCollegeGreaterThanOrEqualTo(String value) {
            addCriterion("star_college >=", value, "starCollege");
            return (Criteria) this;
        }

        public Criteria andStarCollegeLessThan(String value) {
            addCriterion("star_college <", value, "starCollege");
            return (Criteria) this;
        }

        public Criteria andStarCollegeLessThanOrEqualTo(String value) {
            addCriterion("star_college <=", value, "starCollege");
            return (Criteria) this;
        }

        public Criteria andStarCollegeLike(String value) {
            addCriterion("star_college like", value, "starCollege");
            return (Criteria) this;
        }

        public Criteria andStarCollegeNotLike(String value) {
            addCriterion("star_college not like", value, "starCollege");
            return (Criteria) this;
        }

        public Criteria andStarCollegeIn(List<String> values) {
            addCriterion("star_college in", values, "starCollege");
            return (Criteria) this;
        }

        public Criteria andStarCollegeNotIn(List<String> values) {
            addCriterion("star_college not in", values, "starCollege");
            return (Criteria) this;
        }

        public Criteria andStarCollegeBetween(String value1, String value2) {
            addCriterion("star_college between", value1, value2, "starCollege");
            return (Criteria) this;
        }

        public Criteria andStarCollegeNotBetween(String value1, String value2) {
            addCriterion("star_college not between", value1, value2, "starCollege");
            return (Criteria) this;
        }

        public Criteria andStarPhotoIsNull() {
            addCriterion("star_photo is null");
            return (Criteria) this;
        }

        public Criteria andStarPhotoIsNotNull() {
            addCriterion("star_photo is not null");
            return (Criteria) this;
        }

        public Criteria andStarPhotoEqualTo(String value) {
            addCriterion("star_photo =", value, "starPhoto");
            return (Criteria) this;
        }

        public Criteria andStarPhotoNotEqualTo(String value) {
            addCriterion("star_photo <>", value, "starPhoto");
            return (Criteria) this;
        }

        public Criteria andStarPhotoGreaterThan(String value) {
            addCriterion("star_photo >", value, "starPhoto");
            return (Criteria) this;
        }

        public Criteria andStarPhotoGreaterThanOrEqualTo(String value) {
            addCriterion("star_photo >=", value, "starPhoto");
            return (Criteria) this;
        }

        public Criteria andStarPhotoLessThan(String value) {
            addCriterion("star_photo <", value, "starPhoto");
            return (Criteria) this;
        }

        public Criteria andStarPhotoLessThanOrEqualTo(String value) {
            addCriterion("star_photo <=", value, "starPhoto");
            return (Criteria) this;
        }

        public Criteria andStarPhotoLike(String value) {
            addCriterion("star_photo like", value, "starPhoto");
            return (Criteria) this;
        }

        public Criteria andStarPhotoNotLike(String value) {
            addCriterion("star_photo not like", value, "starPhoto");
            return (Criteria) this;
        }

        public Criteria andStarPhotoIn(List<String> values) {
            addCriterion("star_photo in", values, "starPhoto");
            return (Criteria) this;
        }

        public Criteria andStarPhotoNotIn(List<String> values) {
            addCriterion("star_photo not in", values, "starPhoto");
            return (Criteria) this;
        }

        public Criteria andStarPhotoBetween(String value1, String value2) {
            addCriterion("star_photo between", value1, value2, "starPhoto");
            return (Criteria) this;
        }

        public Criteria andStarPhotoNotBetween(String value1, String value2) {
            addCriterion("star_photo not between", value1, value2, "starPhoto");
            return (Criteria) this;
        }

        public Criteria andStarStatusIsNull() {
            addCriterion("star_status is null");
            return (Criteria) this;
        }

        public Criteria andStarStatusIsNotNull() {
            addCriterion("star_status is not null");
            return (Criteria) this;
        }

        public Criteria andStarStatusEqualTo(Integer value) {
            addCriterion("star_status =", value, "starStatus");
            return (Criteria) this;
        }

        public Criteria andStarStatusNotEqualTo(Integer value) {
            addCriterion("star_status <>", value, "starStatus");
            return (Criteria) this;
        }

        public Criteria andStarStatusGreaterThan(Integer value) {
            addCriterion("star_status >", value, "starStatus");
            return (Criteria) this;
        }

        public Criteria andStarStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("star_status >=", value, "starStatus");
            return (Criteria) this;
        }

        public Criteria andStarStatusLessThan(Integer value) {
            addCriterion("star_status <", value, "starStatus");
            return (Criteria) this;
        }

        public Criteria andStarStatusLessThanOrEqualTo(Integer value) {
            addCriterion("star_status <=", value, "starStatus");
            return (Criteria) this;
        }

        public Criteria andStarStatusIn(List<Integer> values) {
            addCriterion("star_status in", values, "starStatus");
            return (Criteria) this;
        }

        public Criteria andStarStatusNotIn(List<Integer> values) {
            addCriterion("star_status not in", values, "starStatus");
            return (Criteria) this;
        }

        public Criteria andStarStatusBetween(Integer value1, Integer value2) {
            addCriterion("star_status between", value1, value2, "starStatus");
            return (Criteria) this;
        }

        public Criteria andStarStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("star_status not between", value1, value2, "starStatus");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}